/**
 * Creater with IntelliJ IDEA.
 * Description:
 * User: 86152
 * Dae: 2022-07-28
 * Time: 15:24
 */
public class Singleton {
    private static volatile Singleton singleton = null;
    private Singleton() {};
    public Singleton getInstance() {
        if(singleton==null) {
            synchronized (Singleton.class) {
                if (singleton == null) {
                    singleton = new Singleton();
                }
            }
        }
        return singleton;
    }
}
